<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<%@ include file="../header.jsp"%>
		<script type="text/javascript"
			src="<%=resourceBase%>customJS/common/commonFunc.js"></script>
		<script type="text/javascript"
			src="<%=resourceBase%>customJS/authorityFunc/usersManagement.js"></script>
		<link rel="stylesheet" type="text/css" href="<%=resourceBase%>customCSS/tables/customTables.css">
		
		
	</head>
	<body>
		<div id="body-wrapper">
			<!-- Wrapper for the radial gradient background -->

			<!-- sidebar.jsp -->
			<%@ include file="../sidebar.jsp"%>
			<div id="gridContent">
				<!-- Main Content Section with everything -->

				<!-- Page Head -->
				<h2>
					用户信息
				</h2>
				<p id="page-intro">
					对用户信息的管理
				</p>
				<table id="gridTable"></table>
				<div id="gridPager">

				</div>
				<div>
					<button class="right-button02" onclick=openDialog4Adding();>
						添加
					</button>
					<button class="right-button02" onclick=	openDialog4Updating();>
						修改
					</button>
					<button class="right-button02" onclick=	openDialog4Deleting();>
						删除
					</button>
					<button class="right-button02" onclick=	openDialog4DSiteRelating();>
						站点关联
					</button>

				</div>
			
				<div id="consoleDlg">
					<div id="formContainer">
						<form id="consoleForm">
							<input type="hidden" id="selectId" />
							<table class="formTable">
								<tr>
									<th>
										<span style="color: red">*</span>用户帐号：
									</th>
									<td>
										<input type="text" class="textField" id="eID" name="eID"
											maxlength="10" />
									</td>
									<th>
										<span style="color: red">*</span>用户姓名:
									</th>
									<td>
										<input type="text" class="textField" id="eName" name="eName"
											maxlength="10" />
									</td>
								</tr>
								<tr>
									<th>
										<span style="color: red">*</span>用户密码：
									</th>
									<td>
										<input type="password" class="textField" id="ePassword"
											name="ePassword" maxlength="25" />
									</td>
									<th>
										<span style="color: red">*</span>确认密码：
									</th>
									<td>
										<input type="password" class="textField" id="ePassword2"
											name="ePassword2" maxlength="25" />
									</td>
								</tr>
								<tr>
									<th>
										手机号码：
									</th>
									<td>
										<input type="text" class="textField" id="eMobilePhone"
											name="eMobilePhone" maxlength="20"
											onkeyup=
	value = value.replace(/[^\d]/g, '');
onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" />
									</td>
									<th>
										邮件地址：
									</th>
									<td>
										<input type="text" class="textField" id="eMailAddress"
											name="eMailAddress" maxlength="50" />
									</td>
								</tr>
								<tr>
									<th>
										<span style="color: red">*</span>用户角色：
									</th>
									<td>
										<select class="select" id="eRoleName" name="eRoleName">
											<option value="no">
												--请选择--
											</option>
										</select>
									</td>
									<th>
										<span style="color: red">*</span>报警级别：
									</th>
									<td>
										<select class="select" id="alarm" name="alarm">
											<option value="no">--请选择--</option>
										</select>
									</td>
								</tr>
								<tr>
									<th>
										有效标志：
									</th>
									<td>
										<input type="checkbox" class="checkbox" id="eFlag"
											name="eFlag" />
									</td>
									<th>
										控制标志：
									</th>
									<td>
										<input type="checkbox" class="checkbox" id="eControllFlag"
											name="eControllFlag" />
									</td>
								</tr>
								<tr>
									<th>
										地图中心点经度：
									</th>
									<td>
										<input type="text" class="textField" id="longitude"
											name="longitude" maxlength="10" />
									</td>

									<th>
										地图中心点维度：
									</th>
									<td>
										<input type="text" class="textField" id="latitude"
											name="latitude" maxlength="10" />
									</td>

								</tr>
								<tr>
									<th>
										地图缩放级别：
									</th>
									<td>
										<input type="text" class="textField" id="mapZoom"
											name="mapZoom" maxlength="2" />
									</td>
								</tr>
							</table>
						</form>
					</div>
				</div>
				<div id="userSitesDiv">
					<form id="userSitesForm">
						<table id="usTable"></table>
						<div id="usPager">
						</div>
					</form>
					<button class="right-button02" onclick=	closeUserSiteRelating();>
						取消
					</button>
					<button class="right-button02" onclick=	selectAllSites();>
						全选
					</button>
					<button class="right-button02" onclick=setUserSiteRelating();>
						设置关联
					</button>
					<button class="right-button02" onclick=showSelected();>
						显示选中
					</button>
				</div>
			</div>
		</div>
	<script type="text/javascript">$.setCurrentMenu('2_YHGL');</script>
	</body>
</html>
